<div ng-show="menu.activeID=='user'">      
       <h1>用户注册</h1>
       <div>
         <h2>调用方法</h2>
        <div class="pre">        

         <strong>调用方法</strong><br>
         var requrl=Api站点+"/user/add"<br>
         $http.post(requrl, Jsondata).success(function (response) {<br>
            alert(response.message);<br>
          });<br><br>

          <strong>参数说明</strong><br>
         var Jsondata={<br>
         code:<strong style="color: #f00;">必填</strong>,<br>
         name:<strong style="color: #f00;">必填</strong>,<br>
         mail:<strong style="color: #f00;">必填</strong>,<br>
         password:<strong style="color: #f00;">必填</strong>,<br>
         telephone:<strong style="color: #f00;">必填</strong>,<br>     
         phone:"",<br>
         companyCode:"",<br>
         companyName:"",<br>
         address:"",<br>
         remark:"",<br>
         }<br>    
        </div>
        <h2>response:返回值</h2>
        <div class="pre">
        <h3>返回结构</h3>
        {"result":false,<br>
        "messageflag":9,<br>
        "message":"code is required."<br>
        }
        <h3>状态说明</h3>
        <table class="table table-bordered">
          <tr><th>result</th><th>messageflag</th><th>message</th></tr>
          <tr><td>true</td><td>success</td><td>save successfully.</td></tr>          
          <tr><td>false</td><td>faild</td><td>save faild.</td></tr>
          <tr><td>false</td><td>error</td><td>application error.</td></tr>
          <tr><td>false</td><td>code_required</td><td>code is required.</td></tr>
          <tr><td>false</td><td>code_formatError</td><td>code format error.</td></tr>
          <tr><td>false</td><td>psd_required</td><td>password is required.</td></tr>
          <tr><td>false</td><td>name_required</td><td>name is required.</td></tr>
          <tr><td>false</td><td>mail_required</td><td>mail is required.</td></tr>
          <tr><td>false</td><td>mail_formatError</td><td>mail format error.</td></tr>
          <tr><td>false</td><td>telephone_required</td><td>telephone is required.</td></tr>
          <tr><td>false</td><td>telephone_formatError</td><td>telephone format error.</td></tr>
          <tr><td>false</td><td>code_exist</td><td>code has exist .</td></tr>
          <tr><td>false</td><td>mail_exist</td><td>mail has exist.</td></tr>
          <tr><td>false</td><td>telphone_exist</td><td>telephone has exist.</td></tr>
        </table>
        </div>
       </div>
       <div>
       <h2>注册(测试)</h2>
       <div class="pre">
         <div class="form-group">
            <label >账号</label>
            <input  class="form-control"  placeholder="Enter 账号" ng-Model="user.code">
           </div>
           <div class="form-group">
            <label >姓名</label>
            <input  class="form-control"  placeholder="Enter 姓名" ng-Model="user.name">
           </div>
           <div class="form-group">
            <label >邮箱</label>
            <input  class="form-control"  placeholder="Enter 邮箱" ng-Model="user.mail">
           </div>
           <div class="form-group">
            <label >手机号码</label>
            <input  class="form-control"  placeholder="Enter 手机号码" ng-Model="user.telephone">
           </div>
           <div class="form-group">
            <label >密码</label>
            <input  type="password" class="form-control"  placeholder="Enter 密码" ng-Model="user.password">
           </div>
           <div>
             <but
             ton class="btn btn-danger" ng-click="user.add()">提交</button>
           </div>
       </div>
       </div> 
       </div>



<!-- <img src="http://qr.topscan.com/api.php?&bg=ffffff&text=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjb2RlIjoieXVuZ2UiLCJleHAiOiIyMDE2LTEyLTIyIDE1OjQ0OjQwIn0.UkWkzlWqppRJjVuO2dz-pvXMZHrXrLkVSFeLuEcyhjc"/> -->
     </div>